<template>
<p v-color="'pink'">hello world</p>
</template>

<script>
export default {
  directives: {
    color: {
      bind: function (el,obj) {
        el.style.color = obj.value
      }
    }
  }
}
</script>

<style>

</style>